import { IFeidaoAiNodejsComponent } from '@feidao/web/interfaces';

import render from '@feidao/web/atom/nodejs/render/render';
import nodejs from '@feidao/web/atom/nodejs/msg/nodejs';

import server_render from '../atom-n/server-render';
import { Params } from '../atom/params2query';
import p2q from '../atom/params2query';
import generate_query4render from '../atom/generate-query4render';
import generate_sort_fields from '../atom/generate-sort-fields';

import P01 from './P01';

export default async function nba001(fd: IFeidaoAiNodejsComponent, ...args: any[]) {
	const id = fd.data.params['id'];

	// 查询数据
	const res = await nodejs(fd.data.spaceid, 'certifi_info_detail', { _id: id });

	server_render(fd.data.node, 'P01', P01, res);

}